home *** CD-ROM | disk | FTP | other *** search
-
- ; StopMenu Update Script
-
- ; $Id: Update,v 1.2 2000/06/30 08:54:20 damir Rel $
-
- ; (C)2000 Damir Arh
-
-
- ; Updates StopMenu from V1.02+ to V1.03
-
-
- ;-------------------------------------------------
-
- ; string declaration
-
- (set #abort
- (cat "You don't have StopMenu installed.\n"
- "You'll have to install the full package.")
- )
-
- (set #copy-prefs
- (cat "Copying new program files")
- )
-
- (set #delete
- (cat "Deleting obsolete documentation")
- )
-
- (set #make-dir
- (cat "Recreating the docmuentation drawer")
- )
-
- (set #copy-docs
- (cat "Copying new documentation")
- )
-
- (set #copy-icon
- (cat "Copying a new icon")
- )
-
- (set #exit
- (cat "Congratulations!\n"
- "You have succesfully updated StopMenu.")
- )
-
-
- ;-------------------------------------------------
-
- ; initialization
-
- (set #source-dir (pathonly @icon))
-
- (set @default-dest "StopMenu:")
-
- (if (= (exists @default-dest (noreq)) 0)
- (abort )
- )
-
- (complete 20)
-
-
- ;------------------------------------------------
-
- ; copying
-
- (copyfiles
- (prompt #copy-prefs)
- (source (tackon #source-dir "Prefs"))
- (dest @default-dest)
- )
-
- (complete 40)
-
- (copyfiles
- (prompt #copy-prefs)
- (source (tackon #source-dir "StopMenu"))
- (dest @default-dest)
- )
-
- (complete 60)
-
- (copyfiles
- (prompt #copy-docs)
- (source (tackon #source-dir "StopMenu.guide"))
- (dest (tackon @default-dest "docs"))
- )
-
- (complete 80)
-
- (if (exists "StopMenu:glowicons" (noreq))
- (set #icon "glowicons/program")
- (set #icon "icons/program")
- )
-
-
- (copyfiles
- (prompt #copy-info)
- (source (tackon #source-dir "WBWindows.info"))
- (dest (tackon @default-dest #icon))
- )
-
- (complete 100)
-
-
- ;-------------------------------------------------
-
- ; update completed
-
- (exit #exit)
-
-